package cntr.notifications;

import org.jgroups.Address;
import org.jgroups.blocks.MethodCall;

/**
 * Created by Thanh-Trung Pham.
 */
public class MethodInvocationNotification extends AbstractNotification {
    private final String m_strdeployableEntityName; //which deployable entity to call
    private final MethodCall m_oMethodCall; //the method to call and its arguments.

    public MethodInvocationNotification(Address sourceAddress, String deployableEntityName, MethodCall methodCall) {
        super(sourceAddress);
        m_strdeployableEntityName = deployableEntityName;
        m_oMethodCall = methodCall;
    }

    public String getDeployableEntityName() {
        return m_strdeployableEntityName;
    }

    public MethodCall getMethodCall() {
        return m_oMethodCall;
    }
}
